home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12331 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: HELP with array declaration
  5. Date: Sat, 30 Mar 96 17:23:33 GMT
  6. Organization: none
  7. Message-ID: <828206613snz@genesis.demon.co.uk>
  8. References: <315C7F92.30E18DFD@learning.c.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <315C7F92.30E18DFD@learning.c.com> ed@learning.c.com "Ed" writes:
  15.  
  16. >Hi,
  17. >
  18. >I don't know why the compiler (gcc) complains given this code:
  19. >
  20. >
  21. >...
  22. >...
  23. >#define STRING 81
  24. >
  25. >void sort_insert(char a[][STRING], unsigned int numdata) {
  26. >
  27. >...
  28. >...
  29. >
  30. >}
  31. >
  32. >
  33. >The compiler says that "two or more data types in declaration of
  34. >'sort_insert' "
  35.  
  36. That is fine and gcc here accepts it with no problem. Post a *complete*
  37. sample of code that demonstrates the problem.
  38.  
  39. -- 
  40. -----------------------------------------
  41. Lawrence Kirby | fred@genesis.demon.co.uk
  42. Wilts, England | 70734.126@compuserve.com
  43. -----------------------------------------
  44.